package Creational_design_pattern.Singleton.Eager_Singleton;

public class EagerSingleton {
    // 定义私有静态成员变量
    private static final EagerSingleton instance =  new EagerSingleton();
    //私有构造函数
    private EagerSingleton(){}
    //公有静态工厂方法
    public static EagerSingleton getInstance(){
        return instance;
    }

}
